package ooday05;
/** staticfinal 常量的演示 */
public class StaticFinalDemo {
    public static void main(String[] args) {
        //扬名立万
        //Loo.PI = 3.141592678;//编译错误，常量不能被改变
        System.out.println(Loo.PI);//常量通过类名点来访问
        System.out.println(Loo.num);

    }
}
class Loo{
    public static int num = 5;
    public static final double PI = 3.1415926;
    //public static final int FGA;//常量必须声明同时初始化
}
